package com.wlp.pengpicturebackend.controller;

import com.wlp.pengpicturebackend.common.BaseResponse;
import com.wlp.pengpicturebackend.common.ResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 健康检查
 *
 * @author wlp
 * @date 2025/01/01 11:18
 **/
@RestController
@RequestMapping("/")
public class MainController {
    /**
     * 健康检查
     * @Author: wlp
     * @Date: 2025/1/1 11:19
     * @return: com.wlp.pengpicturebackend.common.BaseResponse<java.lang.String>
     **/
    @GetMapping("/health")
    public BaseResponse<String> health(){
        return ResultUtils.success("ok");
    }
}
